<table cellspacing="0" cellpadding="0" style="width:100%">
  <col class="Colauto"></col>
  <col class="Coloption_1b"></col>
  <tbody>
	<{foreach from=$organization item=item key=iLoop name="item"}>
      <tr parentid="<{$item.org_id}>" class="provice-bg">
        <td style="text-align:left; width:320px;">
          <div style="padding-left:<{$item.step*25}>px">
            <{if $item.org_type == 1}>
                <{if $item.child_count>0}>
                <span class="imgTree" onclick="clickTree(this);" id="<{$item.org_id}>"> &nbsp;&nbsp; </span>
                <{else}>
                <span class="imgTree tree_open"> &nbsp;&nbsp; </span>
                <{/if}>
            <{else}>
                <span class=""> &nbsp;&nbsp; </span>
            <{/if}>
            <span style="font-weight:700; color:#000; text-decoration:none;padding-right:15px;" ><{$item.org_name}></span>
          </div>
        </td>
        <td style="width:350px">
            <{if $item.org_type == 1}>
                <a class="i" href='index.php?app=o2o&ctl=admin_store&act=add&p[0]=&p[1]=<{$item.org_id}>' target="dialog::{title:'<{t}>新增门店<{/t}>',width:650,height:650}">新增</a>
            <{elseif $item.org_type == 2}>
                <a class="i" href='index.php?app=o2o&ctl=admin_store&act=edit&p[0]=<{$item.org_id}>' target="dialog::{title:'<{t}>编辑门店<{/t}>',width:650,height:650}">编辑</a>
                &nbsp;|&nbsp;<a href="javascript:if(confirm('确认删除门店&nbsp;[<{$item.org_name|replace:'\'':'\\\''}>]&nbsp;？')){W.page('index.php?app=o2o&ctl=admin_store&act=toRemoveStore&p[0]=<{$item.org_id}>', {method:'get'})}void(0);" target="">删除
            <{/if}>
        </td>
      </tr>
      <{/foreach}>
</table>
